﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="GateTester._Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Тестирование подключения партнеров</title>
    <style type="text/css">
        .style1
        {
            text-align: center;
        }
        .style2
        {
            width: 564px;
            height: 395px;
        }
        #form1
        {
            height: 641px;
        }
        .style3
        {
            height: 395px;
        }
        .style4
        {
            font-weight: normal;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <h1 class="style1">
        Система Мобильных Расчетов</h1>
    <h2 style="text-align: center">
        Оперативное уведомление о платежах</h2>
    <h3 style="text-align: center">
        Тестирование подключения партнеров<table style="width: 100%; height: 457px;">
            <tr>
                <td class="style2">
    <p style="height: 359px; margin-left: 40px; width: 473px; text-align: left;">
        <span class="style4">Партнер</span>:
        <b>
        <asp:TextBox ID="tbProvider" runat="server"></asp:TextBox>
        <asp:DropDownList ID="DropDownList2" runat="server" DataSourceID="Провайдеры" 
            DataTextField="Name" DataValueField="Name" Visible="False">
        </asp:DropDownList>
        </b>
        <br />
        <br />
        <span class="style4">Протокол</span>:<b><asp:DropDownList ID="ddlProtocol" runat="server">
            <asp:ListItem Selected="True">http</asp:ListItem>
            <asp:ListItem>https</asp:ListItem>
        </asp:DropDownList>
        </b>
        <br />
        <br />
        <span class="style4">Метод</span>:
        <b>
        <asp:DropDownList ID="ddlMethod" runat="server">
            <asp:ListItem>GET</asp:ListItem>
            <asp:ListItem>POST</asp:ListItem>
            <asp:ListItem Value="XML">POST/XML</asp:ListItem>
        </asp:DropDownList>
        </b>
        <br />
        <br />
        <span class="style4">Login</span>:
        <b>
        <asp:TextBox ID="tbLogin" runat="server" Width="322px"></asp:TextBox>
        </b>
        <br />
        <br />
        <span class="style4">Пароль</span>:
        <b>
        <asp:TextBox ID="tbPassword" runat="server" Width="304px"></asp:TextBox>
        </b>
        <br />
        <br />
        <span class="style4">Сервер (host):</span> <b>
        <asp:TextBox ID="tbHost" runat="server" Width="263px"></asp:TextBox>
        </b>&nbsp;:
        <b>
        <asp:TextBox ID="tbPort" runat="server" Width="57px" Columns="5"></asp:TextBox>
        </b>
        <br />
        <br />
        <span class="style4">Скрипт:</span> <b>       <asp:TextBox ID="tbScript" runat="server" Width="301px"></asp:TextBox>
        </b>
        <br />
        <br />
        <span class="style4">Тип содержимого:</span>         
        <asp:DropDownList ID="ddlContType" runat="server">
            <asp:ListItem Value="text/plain">Текст</asp:ListItem>
            <asp:ListItem Value="application/x-www-form-urlencoded">Кодированное</asp:ListItem>
        </asp:DropDownList>
        <br />
        <br />
    <asp:Button ID="btnSend" runat="server" Text="Отправить"
    PostBackUrl="~/testresult.aspx" ValidationGroup="AllValidators" />
        <asp:SqlDataSource ID="Провайдеры" runat="server" 
            ConnectionString="<%$ ConnectionStrings:ShopConnectionString %>" 
            SelectCommand="SELECT [Name] FROM [Shops]"></asp:SqlDataSource>
                    </td>
                    <td class="style3">
    <asp:Panel ID="pQuery" runat="server" GroupingText="Запрос" 
        HorizontalAlign="Justify" Height="383px" Width="348px" style="text-align: left">
        Версия:
        <asp:TextBox ID="Ver" runat="server" Columns="4" Width="30px">2</asp:TextBox>
        <br />
        <br />
        Payment_id:
        <asp:TextBox ID="Payment_id" runat="server" Columns="13" 
            ToolTip="Идентификатор платежа"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
            ControlToValidate="Payment_id" ErrorMessage="Введите ID платежа!" 
            ValidationGroup="AllValidators">*</asp:RequiredFieldValidator>
        <br />
        <br />
        Code:
        <asp:TextBox ID="Code" runat="server" Columns="12"></asp:TextBox>
        <br />
        <br />
        Order:
        <asp:TextBox ID="Order" runat="server" Columns="36" 
            ToolTip="Идентификатор плательщика"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
            ControlToValidate="Order" ErrorMessage="Введите ID плательщика" 
            ValidationGroup="AllValidators">*</asp:RequiredFieldValidator>
        <br />
        <br />
        Сумма:
        <asp:TextBox ID="Sum" runat="server" Columns="8"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
            ControlToValidate="Sum" ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator>
        <br />
        <br />
        Время и дата:
        <asp:TextBox ID="DateTime" runat="server"></asp:TextBox>
        <br />
        <br />
        № телефона:
        <asp:TextBox ID="Phone" runat="server" Wrap="False" Columns="15"></asp:TextBox>
        <br />
        <br />
        Доп. параметры:
        <asp:TextBox ID="tbAuxParam" runat="server" Width="307px" Height="44px" 
            Rows="3" TextMode="MultiLine"></asp:TextBox>
        <asp:ValidationSummary ID="ValidationSummary1" runat="server" 
            ValidationGroup="AllValidators" />
    </asp:Panel>
                    </td>
                </tr>
            </table>
        </h3>
        <br />
</form>
</body>
</html>
